package com.tchintech.pay.view.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.tchintech.pay.R;
import com.tchintech.pay.delegate.fragment.MyInfoFragmentDelegate;
import com.tchintech.pay.frame.presenter.FragmentPresenter;
import com.tchintech.pay.utils.AppConst;
import com.tchintech.pay.utils.UserState;
import com.tchintech.pay.view.activity.OrderQueryActivity;
import com.tchintech.pay.view.activity.PasswordManageActivity;
import com.tchintech.pay.view.certification.AuthenticationActivity;
import com.tchintech.pay.view.certification.BankCardInfoActivity;
import com.tchintech.pay.view.certification.HandPicActivity;
import com.tchintech.pay.view.certification.IdCardBackActivity;
import com.tchintech.pay.view.certification.IdCardFrontActivity;
import com.tchintech.pay.view.certification.ShoperInfoActivity;

/**
 * Created by Administrator on 2017/7/6 0006.
 */

public class MyInfoFragment extends FragmentPresenter<MyInfoFragmentDelegate> implements View.OnClickListener, UserState {
    protected Intent intent=new Intent();
    @Override
    protected Class<MyInfoFragmentDelegate> getDelegateClass() {
        return MyInfoFragmentDelegate.class;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setUserState();
    }

    @Override
    protected void initView() {
        super.initView();
        viewDelegate.setOnClickListener(this, R.id.tr_identify, R.id.tr_orderQuery, R.id.tr_updatePassword);
        setUserState();
    }

    @Override
    protected void initData() {
        super.initData();
    }
    private void setUserState() {
        String msg = "";

        viewDelegate.setText(R.id.tv_tr_identify,msg);
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.tr_updatePassword:
                intent = new Intent(getActivity(), PasswordManageActivity.class);
                startActivity(intent);
                break;

            case R.id.tr_orderQuery:
                 intent = new Intent(getActivity(), OrderQueryActivity.class);
                startActivity(intent);
                break;

        }

    }


}
